Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: E2E test for checking if Plonk parameters require regenerating #69

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

storojs72
Copy link
Member

@storojs72 storojs72 commented Jun 21, 2024

I found it useful running this newly introduced test (test_e2e_check_parameters) to check if installed Plonk parameters work with current version of sphinx (when particular PR that potentially modifies the Plonk circuit has been merged).

As a side note, this PR includes reverting https access to AWS bucket, as now it is publicly accessed for reading

@storojs72 storojs72 changed the title chore: E2E test for checkin if Plonk parameters require regenerating chore: E2E test for checking if Plonk parameters require regenerating Jun 21, 2024
Copy link
Member

@wwared wwared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new test seems good to me in principle and it makes sense, but just to double check: did you mark it as #[ignore] so it wouldn't take too long to run in CI? That is, the test is meant to be run manually and locally?

test_e2e takes ~800s to run in CI currently, so adding test_e2e_check_parameters would probably double that, I believe, so marking it as #[ignore]d is a good call.

One thing to keep in mind about the test as it's written is that, if the parameters already exist (e.g. you generated them locally previously to running the test), the test won't try to re-download them.

@wwared
Copy link
Member

wwared commented Jun 21, 2024

With this PR and our S3 buckets being public, issue #35 now is only about making a release workflow for the S3 artifacts, and argumentcomputer/zk-light-clients#35 should no longer be a problem.

@storojs72
Copy link
Member Author

Yes, when sphinx is updated and Plonk circuit is changed, its parameters no longer work and this test identifies it by failing with constraints error. Then running this test again after uploading newer Plonk parameters to AWS and getting success allows to check that new parameters actually work.

@storojs72 storojs72 merged commit 1d9cc5b into plonk Jun 21, 2024
6 of 7 checks passed
@storojs72 storojs72 deleted the check-parameters branch June 21, 2024 16:33
huitseeker pushed a commit that referenced this pull request Jun 24, 2024
…#69)

* chore: Add e2e test for checking newly installed Plonk parameters

* chore: Use public address of AWS bucket
wwared pushed a commit that referenced this pull request Jun 24, 2024
…#69)

* chore: Add e2e test for checking newly installed Plonk parameters

* chore: Use public address of AWS bucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants